package no.ntnu.fp.storage;

import java.sql.*;

public class Database
{
	static String dbLoc;
	static Connection db;
	
	public static void main(String[] args) throws SQLException
	{

		dbLoc = "jdbc:mysql://localhost/test";
	    try {
		  Class.forName("com.mysql.jdbc.Driver").newInstance();
		  DriverManager.getConnection(dbLoc);
		  db = DriverManager.getConnection(dbLoc, "root", "steffen");
		     } catch (Exception ex) {
	            //Handle exception here
	        	 ex.printStackTrace();
	         }
	     System.out.println(db.getClientInfo());
	}
}
